package cn.dengta.webapp.user.model;

import cn.dengta.common.model.*;
import cn.dengta.webapp.user.entity.game.*;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

@Getter
public enum GameType implements ValueProxyImpl<GameType, Integer> {
	SCORE(1, Bean.entityName(GameScoreLog.class), "分值类"),
	DICE(2, Bean.entityName(GameDiceLog.class), "骰子类(单人)"),

	SLOT(3, Bean.entityName(GameTigerSlotLog.class), "槽位"),
	;

	@EnumValue
	public final Integer value;
	public final String label;
	public final String desc;

	final ValueProxy<GameType, Integer> proxy;

	GameType(Integer value, String label, String desc) {
		this.value = value;
		this.label = label;
		this.desc = desc;
		this.proxy = new ValueProxy<>(this, value, label);
	}
}
